import './style.css'
import { setupCounter } from './counter.js'
import { setupUploader } from './uploader.js'

document.querySelector('#app').innerHTML = `
  <div class="home">
    <a href="https://www.hanxiaoxin.cn/pi/" target="_blank" class="logo">
      <img src="https://static.hanxiaoxin.cn/gifs/onecat1.gif" class="logo" alt="Vite logo" />
    </a>
    
    <h3>Welcome To ESP8266!</h1>
    <div class="card">
      <button id="counter" type="button"></button>
      <button id="uploader" type="button"></button>
    </div>
  </div>
`

setupCounter(document.querySelector('#counter'))
setupUploader(document.querySelector('#uploader'))